<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>


<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="toApprove[@photogallery = 0]">

<xsl:comment>
0 - have just been created
1 - is public
2 - have been denyed authorization
3 - is waiting for authorization
4 - have been modified is waiting for authorization
99 - nuked owner
</xsl:comment>

<table bgcolor="#EEEEEE" class="body_10px" border="0" cellspacing="0" cellpadding="3" width="100%">
<tr height="25px">
<td class="dotlin" colspan="8"><b>Gallery entries in attesa di approvazione</b></td></tr>
<tr class="body">
<td><b>Nickname</b></td>
<td><b>email</b></td>
<td colspan="2"><b>Titolo</b></td>
<td><b>Citta'</b></td>
<td><b>Data</b></td>
<td><b>Categoria</b></td>
<td align="center"><b>Approva</b></td>
</tr>
<xsl:for-each select="row">
<tr>
<td>
	<xsl:call-template name="user">
		<xsl:with-param name="status" select="@uStatus"/>
		<xsl:with-param name="sexid" select="@sexid"/>
		<xsl:with-param name="certified" select="@certified"/>
		<xsl:with-param name="userid" select="@userid"/>
		<xsl:with-param name="nick" select="@nick"/>
	</xsl:call-template>
</td>
<td><xsl:value-of select="@email"/></td>
<td width="1%"><a href="/activities/loadpics.aspx?gid={@gid}&amp;edit=1"><img border="0" src="/imgs/modify.gif"/></a></td>
<td>

<xsl:choose>
<xsl:when test='@public="3"'>
<a href="/activities/loadpics.aspx?gid={@gid}"><xsl:value-of select="@title"/></a>
</xsl:when>
<xsl:when test='@public="4"'>
<b><a href="/activities/loadpics.aspx?gid={@gid}"><xsl:value-of select="@title"/></a></b>
</xsl:when>
<xsl:otherwise>
<a href="/activities/loadpics.aspx?gid={@gid}"><xsl:value-of select="@title"/></a>
</xsl:otherwise>
</xsl:choose>
</td>
<td><xsl:value-of select="@place"/></td>
<td><xsl:value-of select="@gg"/>-<xsl:value-of select="@mm"/>-<xsl:value-of select="@aaaa"/>
<xsl:choose><xsl:when test='@radio="1197"'></xsl:when>
<xsl:when test='@radio="1198"'></xsl:when>
<xsl:when test='@radio="1199"'>&#160;(weekly)</xsl:when>
</xsl:choose>
</td>
<td><xsl:value-of select="@category"/></td>
<td align="center"><a href="?gid={@gid}&amp;makeItPublic=2"><img border="0" src="/imgs/warning.gif"/></a>
&#160;<a href="?gid={@gid}&amp;makeItPublic=1"><img border="0" src="/imgs/markedyes.gif"/></a></td>
</tr>
</xsl:for-each>
</table>

</xsl:template>



<xsl:template match="toApprove[@photogallery = 1]">

<xsl:comment>
0 - have just been created
1 - is public
2 - have been denyed authorization
3 - is waiting for authorization
4 - have been modified is waiting for authorization
99 - nuked owner
</xsl:comment>

<table bgcolor="#EEEEEE" class="body_10px" border="0" cellspacing="0" cellpadding="3" width="100%">
<tr height="25px">
<td class="dotlin" colspan="8"><b>Gallery entries in attesa di approvazione</b></td></tr>
<tr class="body">
<td><b>Nickname</b></td>
<td><b>email</b></td>
<td colspan="2"><b>Titolo</b></td>
<td><b>Data</b></td>
<td align="center"><b>Approva</b></td>
</tr>
<xsl:for-each select="row">
<tr>
<td>
	<xsl:call-template name="user">
		<xsl:with-param name="status" select="@uStatus"/>
		<xsl:with-param name="sexid" select="@sexid"/>
		<xsl:with-param name="certified" select="@certified"/>
		<xsl:with-param name="userid" select="@userid"/>
		<xsl:with-param name="nick" select="@nick"/>
	</xsl:call-template>
</td>
<td><xsl:value-of select="@email"/></td>
<td width="1%"><a href="/gallery/galleryshow.aspx?gid={@gid}"><img border="0" src="/imgs/pics.gif"/></a></td>
<td>

<xsl:choose>
<xsl:when test='@public="3"'>
<a href="/gallery/galleryshow.aspx?gid={@gid}"><xsl:value-of select="@title"/></a>
</xsl:when>
<xsl:when test='@public="4"'>
<b><a href="/gallery/galleryshow.aspx?gid={@gid}"><xsl:value-of select="@title"/></a></b>
</xsl:when>
<xsl:otherwise>
<a href="/gallery/galleryshow.aspx?gid={@gid}"><xsl:value-of select="@title"/></a>
</xsl:otherwise>
</xsl:choose>
</td>
<td><xsl:value-of select="@gg"/>-<xsl:value-of select="@mm"/>-<xsl:value-of select="@aaaa"/>
<xsl:choose><xsl:when test='@radio="1197"'></xsl:when>
<xsl:when test='@radio="1198"'></xsl:when>
<xsl:when test='@radio="1199"'>&#160;(weekly)</xsl:when>
</xsl:choose>
</td>
<td align="center"><a href="?gid={@gid}&amp;makeItPublic=2&amp;photogallery=1"><img border="0" src="/imgs/warning.gif"/></a>
&#160;<a href="?gid={@gid}&amp;makeItPublic=1&amp;photogallery=1"><img border="0" src="/imgs/markedyes.gif"/></a></td>
</tr>
</xsl:for-each>
</table>
</xsl:template>

</xsl:stylesheet>